home *** CD-ROM | disk | FTP | other *** search
- property sparkleCookie, sparklePointer
-
- on birth me
- return me
- end
-
- on loadsparkle me
- global gmasterfolderpath, gFileName
- set sparklePictPath to gmasterfolderpath & getProp(gFileName, #sparkle)
- blitpict("init", "file", sparklePictPath, EMPTY, "1")
- set sparkleCookie to the result
- set sparklePointer to item 1 of sparkleCookie
- end
-
- on sparkle me, H, V
- puppetSound("Sparkle.snd")
- updateStage()
- blitpict("DRAWSPARKLE", the sparklePointer of me, "0,0,32,32", H & "," & V, 2)
- repeat while soundBusy(1)
- end repeat
- puppetSound(0)
- end
-
- on killsparkle me
- blitpict("kill", the sparkleCookie of me)
- end
-